//
//  PlatformFeatures.h
//  ShadowMapping
//
//  Created by Daniel Corleone on 13/6/14.
//  Copyright (c) 2014年 iCloverStudio. All rights reserved.
//

#ifndef ShadowMapping_PlatformFeatures_h
#define ShadowMapping_PlatformFeatures_h

#if !defined(FLOAT_MIN)
#   define FLOAT_MIN        (0.00000001)
#endif  /// FLOAT_MIN


#if !defined(CC_INLINE)
#   define CC_INLINE    inline
#endif  /// CC_INLINE


#if !defined(SAFE_DELETE)
#   define SAFE_DELETE(obj)     do { if (obj) { delete(obj); obj = 0; } } while (false)
#endif  /// SAFE_DELETE

#if !defined(SAFE_DELETE_ARRAY) 
#   define SAFE_DELETE_ARRAY(obj)   do { if(obj) { delete[] (obj); obj = 0; } } while(false)
#endif  /// SAFE_DELETE_ARRAY

#define BECO_NAMESPACE_BEGIN    namespace beco {
#define BECO_NAMESPACE_END      }
#define USING_NAMESPACE_BECO    using namespace beco;

#endif
